package com.qijian.maindata.domain.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 项目进度缓存对象
 *
 * @author qijian
 */

@Data
@ToString
public class ProjectProcessCacheVo {

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long projectId;

    private String projectName;

    private Integer fStatus;

    private String projectNo;

    private String machineNo;

    private String projectMachineNo;

    //预算进度
    private BigDecimal budgetRate;
    // 材料进度(是否有对应的材料清单 OA/mes)
    private Integer materialRate;
    // 采购进度
    private BigDecimal purchaseRate;
    // 工艺进度
    private BigDecimal bomRate;
    // 生产进度
    private BigDecimal processRate;
    // 检验进度
    private BigDecimal qualityRate;

    // bom 各项的进度(bom,材料,线路,等)
    private String bomStatus;

    //权重下的项目进度
    private BigDecimal projectRate;

    // 当前节点
    private String currentNode;

    // 是否发货
    private Integer isShipped;

    // 真实的 检验进度
    private BigDecimal actualQualityRate;

}
